package com.lejin.cms.controller;


import com.lejin.cms.service.IContentService;
import com.lejin.cms.entity.Content;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author luminghua
 * @since 2022-04-19
 */
@RestController
@RequestMapping("/cms/content")
public class ContentController {

    @Autowired
    private IContentService contentService;

    @RequestMapping("findContentListByTpid/{tpid}")
    public List<Content> findContentListByTpid(@PathVariable String tpid) {
        return contentService.findContentListByTpid(tpid);
    }

}
